<?php
if(!empty($_POST['formAction'])){

	if(authnum_check() == false){
		ajax_msg('warning', '验证码不正确', 'callback_findpwd_userid');
	}
	$username = empty($_POST['username']) ? '' : trim($_POST['username']);
	$userid = $__oUser->get_userid($username, '`userid`');
	if(empty($userid) || $userid <= 0){
		ajax_msg('warning', '用户名不存在', 'callback_findpwd_userid');
	}
	// 保存到SESSION
	set_session('findpwd_userid', $userid);

	ajax_msg('succ', '', 'callback_findpwd_userid');
}

?>